<!DOCTYPE html>
<html>
<head>
    <title>设置子公司</title>
    <#include "/header.html">
</head>
<style>
    #rrapp .el-cascader{
        width: 100%;
    }
</style>
<body>
<div id="rrapp" v-cloak>
    <el-row>
        <el-col :span="8"><div class="grid-content bg-purple">
            <el-form ref="seller" :model="seller" size="small" :rules="rules" label-width="120px">
                <el-form-item label="手机号码：" prop="sellerMobile">
                    <el-input v-model.trim="seller.sellerMobile" placeholder="常用手机号码"></el-input>
                </el-form-item>
                <el-form-item>
                    <span id="sc1"></span>
                </el-form-item>
                <el-form-item label="短信验证码：" prop="veriCode">
                    <el-col :span="14">
                        <el-input placeholder="短信验证码" v-model.trim="seller.veriCode"></el-input>
                    </el-col>
                    <el-col :span="10">
                        <el-button @click="queryVerifyCode" :disabled="timeDown.disable">{{timeDown.buttonName}}</el-button>
                    </el-col>
                </el-form-item>
                <el-form-item label="座机号码：">
                    <el-input v-model.trim="seller.sellerTel" placeholder="座机号码"></el-input>
                </el-form-item>
                <el-form-item label="联系人：" prop="name">
                    <el-input v-model.trim="seller.name" placeholder="联系人名称"></el-input>
                </el-form-item>
                <el-form-item label="qq号：" prop="sellerQq">
                    <el-input v-model.trim="seller.sellerQq" placeholder="常用QQ"></el-input>
                </el-form-item>
                <el-form-item label="邮箱：" prop="sellerEmail">
                    <el-input v-model.trim="seller.sellerEmail" placeholder="常用邮箱"></el-input>
                </el-form-item>
                <el-form-item label="门头照名称：" prop="doorheadName">
                    <el-input v-model.trim="seller.doorheadName" placeholder="门头照名称"></el-input>
                </el-form-item>
                <el-form-item label="子公司名称：" prop="sellerName">
                    <el-input v-model.trim="seller.sellerName" placeholder="公司名称"></el-input>
                </el-form-item>
                <el-form-item label="子公司地址：" prop="areaId">
                    <el-cascader size="medium" placeholder="试试搜索：武汉市" :options="regionOptions" filterable @change="handleRegionChange"></el-cascader>
                </el-form-item>
                <el-form-item label="详细地址：" prop="addr">
                    <el-input v-model.trim="seller.addr" placeholder="公司详细地址"></el-input>
                </el-form-item>
                <el-form-item label="店面门头照：" prop="logoUrl">
                    <template v-if="!isBlank(seller.logoUrl)">
                        <P><img :src="'https://ziyunoss.oss-cn-hangzhou.aliyuncs.com/'+ seller.logoUrl+ '?x-oss-process=image/resize,m_fixed,h_120,w_120'"></P>
                    </template>
                    <P><a class="btn btn-info btn-sm" id="upload1">点击上传</a>（店面门头照和门头名称信息一致）</P>
                </el-form-item>
                <el-form-item label="营业执照：" prop="businessUrl">
                    <template v-if="!isBlank(seller.businessUrl)">
                        <P><img :src="'https://ziyunoss.oss-cn-hangzhou.aliyuncs.com/'+ seller.businessUrl+ '?x-oss-process=image/resize,m_fixed,h_120,w_120'"></P>
                    </template>
                    <p><a class="btn btn-info btn-sm" id="upload2">点击上传</a>（入驻提供营业执照名称和上面名称一致）</p>
                </el-form-item>
                <el-form-item label="所属类别：">
                    <el-col :span="14">
                        <el-select v-model="seller.operateType" placeholder="请选择">
                            <el-option
                                    v-for="item in operateTypeOptions"
                                    :key="item.value"
                                    :label="item.label"
                                    :value="item.value">
                            </el-option>
                        </el-select>
                    </el-col>
                </el-form-item>
                <el-form-item label="月交易规模：">
                    <el-input size="medium" v-model.trim="seller.monthlyTradingScale" placeholder="公司月交易规模"></el-input>
                </el-form-item>
                <el-form-item>
                    <el-button @click="saveInfo" type="primary">立即创建</el-button>
                    <el-button @click="history.go(-1)">取消</el-button>
                </el-form-item>
            </el-form>
        </div></el-col>
    </el-row>
</div>
<!-- 文件上传 -->
<link rel="stylesheet" href="${request.contextPath}/statics/plugins/oss/style.css">
<script type="text/javascript" src="${request.contextPath}/statics/plugins/oss/js/plupload.full.min.js"></script>
<script type="text/javascript" src="${request.contextPath}/statics/plugins/oss/ziyun_library.js"></script>
<!-- 图片预览 -->
<link rel="stylesheet" href="${request.contextPath}/statics/plugins/viewer/viewer.min.css">
<script src="${request.contextPath}/statics/plugins/viewer/viewer.min.js"></script>
<script src="${request.contextPath}/statics/js/modules/supp/subsellerinfo.js?_${.now?long}"></script>
<!-- 阿里云智能验证 -->
<script src="//g.alicdn.com/sd/smartCaptcha/0.0.3/index.js"></script>
<!-- ip地址查询 -->
<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>

</body>
</html>